package com.zxj.databaseframework.db;

import java.util.List;

/**
 * Created by zuo on 2018/3/8.
 */

public interface IBaseDao<T> {
    long insert(T entity);

    int  update(T entity,T where);

    int  delete(T where);

    List<T> query(T where);


    List<T> query(T where,String orderBy,Integer startIndex,Integer limit);


    List<T> query(String sql,Class<T>  selectionArgs);
}
